﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

namespace Assets.Script.Human.Enemy.Actions
{
    class FlyStraight : EnemyActionBase, IAction
    {

        public FlyStraight(EnemyBody body) : base(body)
        {
        }

        public void Interrupt()
        {
            state.Move = false;
        }

        public void OnEnter(ref object[] o)
        {
            Debug.Log("ASD");
            state.Move = true;
        }


        public void OnFixedUpdate()
        {
            
        }

        public void OnUpdate()
        {
            body.transform.Translate(Vector3.left * data.MoveSpeed*Time.deltaTime);
        }
    }
}
